<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue.js"></script>
</head>
<body>
<div id="app">
    <cpn></cpn>
    <cpn></cpn>
    <cpn></cpn>
    <cpn></cpn>
    <cpn></cpn>
    <cpn></cpn>
    <comp></comp>
</div>
<script>
    // 全局组件注册
    let cpnC = Vue.extend({
        template:'<h1>Hello World</h1>',
        components:{

        }
    })
    Vue.component('comp',cpnC)
    let vm = new Vue({
        el:'#app',
        // 局部组建注册
        components:{
            cpn:cpnC
        }
    })
</script>
</body>
</html>
